import {SET_WEATHER_DATA} from "./action_type";

const defaultStates = {
  currentCity: '',
  dayPictureUrl: '',
  weather: ''
};
export default (state = defaultStates, action) => {
  const {type, weatherData} = action;
  switch (type) {
    case SET_WEATHER_DATA:
      return {...weatherData};
    default:
      return state;
  }
}
